package invoice.footer;

import invoice.Invoice;

public abstract class Footer implements Invoice{
    private Invoice component;

    public void decorate(Invoice comp){
        component=comp;
    }

    public void print(){
        if(component!=null)
            component.print();
    }

    protected abstract void printFooter();
}
